<link type="text/css" rel="stylesheet" href="css/services.css"/>
<div class="container">
		<h1>Thêm nhân viên</h1>
<?php     
echo form_open(current_url()); ?>
		<div id = "top_reserve">
			<div id = "content-right" class="action">
			
			<div>
			<p>
                            <input type="image" id="button_submit" name="button_submit" value="Lưu" class="imageButtonSmall"/>
		<?php 
		$data = array(
			'name' => 'button_cancel',
			'id' => 'button_cancel',
			'value' => 'true',
			'type' => 'button',
			'content' => 'Hủy',
			'onclick'=>"history.go(-1);return false;"
		);

		echo form_button($data);
		?>
</p></div> <!-- end opt_box -->
			</div> <!-- end add_new -->
		</div> <!-- end top_reserve -->
<div style="width:500px;margin:0 auto;">
<?php  echo $custom_error; ?>     
<?php 
	$e_id=set_value('EE_ID');
	if(!$e_id) $e_id=$temp_id;
	$Personal_ID = set_value('Personal_ID');
	if(!$Personal_ID) $Personal_ID=$temp_id;
?>                         
                <input id="EE_ID" type="hidden" name="EE_ID" value="<?php echo $e_id; ?>"  />
				<span style=" clear:both; float:left; padding:5px;">
                <p><label style="float: left; text-align: right; margin-right: 5px; width: 135px;" for="Personal_ID">Tên đăng nhập</label>                              
                <input id="Personal_ID" type="text" name="Personal_ID" value="<?php echo $Personal_ID; ?>"  />
                <?php echo form_error('Personal_ID','<div class="error">','</div>'); ?>
                </p></span>
				<span style=" clear:both; float:left; padding:5px;">
                <p><label style="float: left; text-align: right; margin-right: 5px; width: 135px;" for="Name">Tên</label>                              
                <input id="Name" type="text" name="Name" value="<?php echo set_value('Name'); ?>"  />
                <?php echo form_error('DOB','<div class="error">','</div>'); ?>
                </p></span>
				<span style=" clear:both; float:left; padding:5px;">
                <p><label style="float: left; text-align: right; margin-right: 5px; width: 135px;" for="Password">Mật khẩu</label>                              
                <input id="Password" type="password" name="Password" value="<?php echo set_value('Password'); ?>"  />
                <?php echo form_error('Password','<div class="error">','</div>'); ?>
                </p></span>
<span style=" clear:both; float:left; padding:5px;">
                <p><label style="float: left; text-align: right; margin-right: 5px; width: 135px;" for="DOB">Ngày sinh</label>                              
                <input id="DOB" type="text" name="DOB" value="<?php echo set_value('DOB'); ?>"  />
                <?php echo form_error('DOB','<div class="error">','</div>'); ?>
                </p></span>
<span style=" clear:both; float:left; padding:5px;">
                <p><label style="float: left; text-align: right; margin-right: 5px; width: 135px;" for="Phone_NO">Số đt</label>                                
                <input id="Phone_NO" type="text" name="Phone_NO" value="<?php echo set_value('Phone_NO'); ?>"  />
                <?php echo form_error('Phone_NO','<div class="error">','</div>'); ?>
                </p></span>
<span style=" clear:both; float:left; padding:5px;">
                <p><label style="float: left; text-align: right; margin-right: 5px; width: 135px;" for="Street">Địa chỉ</label>                                
                <input id="Street" type="text" name="Street" value="<?php echo set_value('Street'); ?>"  />
                <?php echo form_error('Street','<div class="error">','</div>'); ?>
                </p></span>
<span style=" clear:both; float:left; padding:5px;">
                <p><label style="float: left; text-align: right; margin-right: 5px; width: 135px;" for="Position">Vị trí</label>                                
                <input id="Position" type="text" name="Position" value="<?php echo set_value('Position'); ?>"  />
                <?php echo form_error('Position','<div class="error">','</div>'); ?>
                </p></span>
				<?php if($role == ADMINISTRATOR){?>
			<span style=" clear:both; float:left; padding:5px;">
                <p><label style="float: left; text-align: right; margin-right: 5px; width: 135px;" for="Position">Lương</label>                                
                <input id="Salary" type="text" name="Salary" value="<?php echo set_value('Salary'); ?>"  />
                <?php echo form_error('Salary','<div class="error">','</div>'); ?>
             </p></span>
			 <?php } ?>
<span style=" clear:both; float:left; padding:5px;">
                <p><label style="float: left; text-align: right; margin-right: 5px; width: 135px;" for="Yrs_of_exp">Kinh nghiệm</label>                                
                <input id="Yrs_of_exp" type="text" name="Yrs_of_exp" value="<?php echo set_value('Yrs_of_exp'); ?>"  />
                <?php echo form_error('Yrs_of_exp','<div class="error">','</div>'); ?>
                </p></span>
<span style=" clear:both; float:left; padding:5px;">
                <p><label style="float: left; text-align: right; margin-right: 5px; width: 135px;" for="Education_Level">Học vấn</label>                                
                <input id="Education_Level" type="text" name="Education_Level" value="<?php echo set_value('Education_Level'); ?>"  />
                <?php echo form_error('Education_Level','<div>','</div>'); ?>
                </p></span>
<span style=" clear:both; float:left; padding:5px;">
                <p><label style="float: left; text-align: right; margin-right: 5px; width: 135px;" for="Hired_Dt">Ngày kí hợp đồng</label>                                
                <input id="Hired_Dt" type="text" name="Hired_Dt" value="<?php echo set_value('Hired_Dt'); ?>"  />
                <?php echo form_error('Hired_Dt','<div class="error">','</div>'); ?>
                </p></span>
<span style=" clear:both; float:left; padding:5px;">
                <p><label style="float: left; text-align: right; margin-right: 5px; width: 135px;" for="Term_Dt">Ngày hết hợp đồng</label>                                
                <input id="Term_Dt" type="text" name="Term_Dt" value="<?php echo set_value('Term_Dt'); ?>"  />
                <?php echo form_error('Term_Dt','<div class="error">','</div>'); ?>
                </p></span>
                <span style="clear:both; padding:5px;">
                    <p>
                        <label style="float: left; text-align: right; margin-right: 5px; width: 135px;" for="Role">Quyền</label>            
                    <div class="styled-select">
                        <?php echo $combobox_cats; ?>
                    </div>
                </span>
<span style=" clear:both; float:left; padding:5px;">
                <p><label style="float: left; text-align: right; margin-right: 5px; width: 135px;" for="Active">Kích hoạt</label><?php 
						$data = array(
							"name"        => "Active",
							"id"          => "Active",
							"value"       => 1,
							"checked"     => TRUE,
							"style"       => "float: left;",
						);
						echo form_checkbox($data); ?> 
                </p></span>
	<span style=" clear:both; float:left; padding:5px;">
                <p><label style="float: left; text-align: right; margin-right: 5px; width: 135px;" for="Active">% Dịch vụ</label><?php 
						$data = array(
							"name"        => "Dichvu",
							"id"          => "Dichvu",
							"value"       => 1,
							"checked"     => false,
							"style"       => "float: left;",
						);
						echo form_checkbox($data); ?> 
                </p></span>
</div>
<?php echo form_close(); ?>
		</div>
